<?php
// +----------------------------------------------------------------------
// | TpAmis相关设置
// +----------------------------------------------------------------------

return [
    // +----------------------------------------------------------------------
    // | TpAmis配置
    // +----------------------------------------------------------------------
    'view' => 'tp6',
    // +----------------------------------------------------------------------
    // | 表格相关设置
    // +----------------------------------------------------------------------


    // +----------------------------------------------------------------------
    // | 表单相关设置
    // +----------------------------------------------------------------------
    //文件上传配置
    'file_upload' => "/admin/upload/file",
    'file_accept' => '.' . join(',.', [
        'xls',
        'xlsx',
        'csv',
        'doc',
        'docx',
        'ppt',
        'pptx',
        'pdf',
        'txt',
        'rar',
        'zip'
    ]),
    
    //文件分片上传配置
    "start_chunk_api" => "/erp/amisupload/upload_chunk_start",
    "chunk_api" => "/erp/amisupload/upload_chunk",
    "finish_chunk_api" => "/erp/amisupload/upload_chunk_finish",
    "chunk_size" => 1024 * 1024 * 2,
    "concurrency" => 3,

    //图片上传配置
    'image_upload' => "/admin/upload/file",
    'image_accept' => '.' . join(',.', [
        '.jpeg',
        '.jpg',
        '.png',
        '.gif',
    ]),

];
